import React, { Component } from 'react';
import { NoticeBar } from 'antd-mobile';

import './IndexNotice.less'

export default class IndexNotice extends Component {
    render() {
        return (
            <div className='index-notice'>
                <NoticeBar
                    icon={<img alt="" style={{ width: '0.36rem', height: '0.36rem' }} src={require('../../../images/home2.png')}></img>}
                    marqueeProps={{
                        loop: true,
                        leading: 500,
                        trailing: 800,
                        fps: 40,    
                        style: {
                            fontSize:'0.24rem',
                            color: '#666666'
                        }
                    }}
                >
                    {this.props.info}
                </NoticeBar>
            </div>
        );
    }
}